package com.lz.football.module.compete
{
	import com.common.utils.Reflection;
	import com.liangzhong.model.AppData;
	
	import common.BaseView.BaseView;
	
	import flash.text.TextField;

	/**
	 *奖励界面
	 *  
	 * @author Administrator
	 * 
	 */	
	public class AwardView extends BaseView
	{
		
		/**
		 *国家排行 
		 */
		private var nationRank:TextField;
		/**
		 *国内排行  
		 */
		private var inlandRank:TextField;
		public function AwardView()
		{
			super();
		}
		override public function initUI(view:Object=null):void
		{
			symbolSkin = Reflection.createInstance("com.lz.modul.compete.awardPanel");
			this.addChild(symbolSkin);
			_windowBg = symbolSkin.competeawardBg;
			nationRank = symbolSkin.nationRank;
			inlandRank = symbolSkin.inlandRank;
			isCloseBtn = true;
			isDrag = true;
			_viewHeight = _windowBg.height;
			_viewWidth = _windowBg.width;
			moveClose(_viewWidth - 30,25);
			onResizeHandler();
			
		}
		
		/**
		 * 
		 * 
		 */
		public function setDate():void
		{
			inlandRank.text =  "当前国内排名：" + AppData.getInstance().competeDataManager.competeInfoVo.nationrank;
			nationRank.text = "当前国家排名：" + AppData.getInstance().competeDataManager.nationRank
		}
	}
}